#!/bin/bash
#python2.5 -O /usr/lib/python2.5/py_compile.py gmail_backup_gui.py
#python2.5 -O /usr/lib/python2.5/py_compile.py gmail_backup.py
#python2.5 -O /usr/lib/python2.5/py_compile.py gmb.py

# Make the dist_SH directory for the Linux distribution.
mkdir dist_SH

# Copy all Python files that are directly part of Gmail Backup to the dish_SH directory.
cp ComparableMixin.py DateTimeConverter.py gmail_backup.py gmail_backup_gui.py gmail_backup_gui_settings.py GmailConnection.py gmb.py InterruptableThread.py messagefunctions.py MyIMAP4_SSL.py ThreadedGmailBackup.py translation.py versioning.py setup.py dist_SH

# Copy the svc directory with extra Python files used by the command line version of Gmail Backup.
cp -r svc dist_SH
rm -rf dist_SH/svc/.svn
rm -rf dist_SH/svc/scripting/.svn

# Copy gif and ico.
cp gmb.gif gmb.ico dist_SH

# Copy the translation file template.
cp gmail-backup.pot dist_SH

# Copy the translations.
svn export messages dist_SH/messages

